﻿<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<umbPackage>
  <files>
    <file>
      <guid>EnableAdaptiveImages.cshtml</guid>
      <orgPath>/macroScripts</orgPath>
      <orgName>EnableAdaptiveImages.cshtml</orgName>
    </file>
    <file>
      <guid>AdaptiveImages.dll</guid>
      <orgPath>/bin</orgPath>
      <orgName>AdaptiveImages.dll</orgName>
    </file>
  </files>
  <info>
    <package>
      <name>uAdaptiveImages</name>
      <version>1.0</version>
      <license url="http://www.opensource.org/licenses/mit-license.php">MIT license</license>
      <url>http://www.governor.co.uk</url>
      <requirements>
        <major>3</major>
        <minor>0</minor>
        <patch>0</patch>
      </requirements>
    </package>
    <author>
      <name>John Mannix</name>
      <website>http://twitter.com/jmannix</website>
    </author>
    <readme><![CDATA[]]></readme>
  </info>
  <DocumentTypes />
  <Templates />
  <Stylesheets />
  <Macros>
    <macro>
      <name>EnableAdaptiveImages</name>
      <alias>EnableAdaptiveImages</alias>
      <scriptType>
      </scriptType>
      <scriptAssembly>
      </scriptAssembly>
      <xslt>
      </xslt>
      <useInEditor>False</useInEditor>
      <refreshRate>0</refreshRate>
      <scriptingFile>EnableAdaptiveImages.cshtml</scriptingFile>
      <properties />
    </macro>
  </Macros>
  <DictionaryItems />
  <Languages />
  <DataTypes />
  <Actions>
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.ResolutionBreakpoints" value="1382, 992, 768, 480" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.CachePath" value="ai-cache" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.JpegQuality" value="80" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.WatchCache" value="true" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.BrowserCache" value="604800" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.MobileFirst" value="true" />
    <Action runat="install" undo="true" alias="AddAppConfigKey" key="AdaptiveImages.CookieName" value="resolution" />    	
	<Action runat="install" undo="false" alias="AddXmlFragment" file="~/web.config" xpath="//system.webServer/handlers" position="beginning">
		<add name="AdaptiveImagesPng" path="*.png" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
	</Action>	
	<Action runat="install" undo="false" alias="AddXmlFragment" file="~/web.config" xpath="//system.webServer/handlers" position="beginning">
		<add name="AdaptiveImagesJpg" path="*.jpg" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
	</Action>	
	<Action runat="install" undo="false" alias="AddXmlFragment" file="~/web.config" xpath="//system.webServer/handlers" position="beginning">
		<add name="AdaptiveImagesGif" path="*.gif" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
    </Action>	
	<Action runat="uninstall" alias="RemoveXmlFragment" file="~/web.config" xpath="//system.webServer/handlers/add[@name='AdaptiveImagesPng']" />
	<Action runat="uninstall" alias="RemoveXmlFragment" file="~/web.config" xpath="//system.webServer/handlers/add[@name='AdaptiveImagesJpg']" />
	<Action runat="uninstall" alias="RemoveXmlFragment" file="~/web.config" xpath="//system.webServer/handlers/add[@name='AdaptiveImagesGif']" />
  </Actions>
</umbPackage>